<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:23:"app/index/view/set.html";i:1615109898;s:26:"app/index/view/header.html";i:1615109898;s:26:"app/index/view/footer.html";i:1615109898;}*/ ?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <meta name="author" content="@梦雨(QQ50361804)" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>基本设置 - <?php echo set('title'); ?></title>
    <meta name="keywords" content="<?php echo set('keywords'); ?>">
    <meta name="description" content="<?php echo set('description'); ?>">
    <!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
    <meta name="renderer" content="webkit" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="stylesheet" href="/public/admin/lib/layui/css/layui.css">
    <link rel="stylesheet" href="/public/admin/css/font.css">
	<link href="/public/css/default.css" rel="stylesheet">
	<script src="/public/js/jquery-3.4.1.min.js"></script>
    <script src="/public/admin/lib/layui/layui.js"></script>
    <link rel="stylesheet" href="/app/index/view/public/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/app/index/view/public/css/uid.css?v=<?php echo set('banben'); ?>" />
    <?php echo hook('userheader'); ?>
</head>
<body class="indexx">
    <main class="main pb-20">
        <div class="header-image">
            <div class="js-parallax"></div>
        </div>
        <div class="container gutter-top">
            <!-- Header -->
            <header class="header_uid box">
                <div class="header__left">
                    <div class="header__photo">
                        <img class="header__photo-img" src="<?php echo user('userhead'); ?>" alt="<?php echo user('username'); ?>">
                    </div>
                    <div class="header__base-info">
                        <h4 class="title titl--h4"><?php echo user('username'); ?></h4>
                        <ul class="header__social">
                            <li>
                                <div class="addqa">余额：<?php echo user('point'); ?><?php echo set('jifen',2); ?></div>
                            </li>
                            <li>
                                <a href="<?php echo url('index/user/uid',array('id'=>user('userid'))); ?>" class="addqun" target="_blank">我的主页</a>
                            </li>
                            <li>
                                <a  url="<?php echo url('index/api/logout'); ?>" name="确实要退出登录吗" href="javascript:;" class="add-listing dark-bg del_t">退出</a>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="header__right">
                    <div class="status"><?php echo dingyi(user('description'),'没有任何介绍'); ?></div>
                </div>
            </header>
            <div class="row sticky-parent">
                <aside class="col-12 col-md-12 col-lg-2">
                    <div class="sidebar box sticky-column">
                        <ul class="nav fanhui">
                            <li class="nav__item">
                                <a href="/" target="_blank">
                                    <i class="layui-icon">&#xe609;</i>
                                    返回首页
                                </a>
                            </li> 
                            <li class="nav__item">
                                <a <?php if(strpos(get_url(), 'set') !== false): ?>class="active"<?php endif; ?> href="<?php echo url('index/user/set'); ?>">
                                    <i class="layui-icon">&#xe620;</i>
                                    基本设置
                                </a>
                            </li>
                            <li class="nav__item">
                                <a <?php if(strpos(get_url(), 'jifen') !== false): ?>class="active"<?php endif; ?> href="<?php echo url('index/user/jifen'); ?>">
                                    <i class="layui-icon">&#xe65e;</i>
                                    <?php echo set('jifen',2); ?>管理
                                </a>
                            </li> 
                            <li class="nav__item">
                                <a <?php if(strpos(get_url(), 'content') !== false): ?>class="active"<?php endif; ?> href="<?php echo url('index/user/content'); ?>">
                                    <i class="layui-icon">&#xe600;</i>
                                    我的内容
                                </a>
                            </li> 
                            <li class="nav__item">
                                <a href="javascript:;" id="gengduo">
                                    <i class="layui-icon">&#xe65f;</i>
                                    更  多
                                </a>
                            </li> 
                        </ul>
                        <ul class="nav genduo" style="display:none;">
                            <li class="nav__item">
                                <a <?php if(strpos(get_url(), 'add') !== false): ?>class="active"<?php endif; ?> href="<?php echo url('index/user/add'); ?>">
                                    <i class="layui-icon">&#xe672;</i>
                                    发布内容
                                </a>
                            </li> 
                            <!--会员中心菜单钩子-->
                            <?php echo hook('userheadernav'); ?>
                            <li class="nav__item">
                                <a href="javascript:;" id="fanhui">
                                    <i class="layui-icon">&#xe65c;</i>
                                    返回
                                </a>
                            </li> 
                        </ul>
                    </div>
                </aside>
                <!-- 内容开始 -->
                <div class="col-12 col-md-12 col-lg-10 pb-20">
                    <div class="box box-content" style="min-height: 625px;">
                        
                        <div class="filterspace__controls">
                            <ul class="nav nav-pills" id="pills-tab" role="tablist">
                                <li class="nav-item">
                                    <a href="<?php echo url('index/user/set'); ?>" class="nav-link <?php if(get('id','1')=='1'): ?>active<?php endif; ?>">个人资料</a>
                                </li>
                                <li class="nav-item">
                                    <a href="<?php echo url('index/user/set',array('id'=>'account')); ?>" class="nav-link <?php if(get('id','1')=='account'): ?>active<?php endif; ?>">
                                       账户绑定
                                    </a>
                                </li>
                            </ul>
                        </div>    
                        <div class="sides_list_property large mt-10" style="display: block;">
                            <?php if(get('id','1')=='1'): ?>
                            <!--个人资料-->
                            <form class="layui-form form" url="<?php echo url('index/api/user_set'); ?>" t_url="javascript:location.reload();">
                                <div class="pricing-body">
                                    <ul class="list contact-form col-lg-12">
                                        
                                        
                                        <div class="layui-form-item">
                                            <label for="name">邮箱</label>
                                            <div class="form-group">
                                                <input type="text" readonly value="<?php echo user('usermail'); ?>" style="text-align: left;" autocomplete="off" placeholder="账户绑定更换" class="form-control">
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label for="name">手机号码</label>
                                            <div class="form-group">
                                                <input type="text" readonly value="<?php echo user('phone'); ?>" style="text-align: left;" autocomplete="off" placeholder="账户绑定更换" class="form-control">
                                            </div>
                                        </div>
                                        
                                        <div class="layui-form-item">
                                            <label for="name">头像</label>
                                            <div class="form-group">
                                                <input type="text" name="userhead" class="form-control" value="<?php echo user('userhead'); ?>" id="pic" placeholder="上传头像" autocomplete="off" class="layui-input">
                                                <button type="button" class="layui-btn layui-btn-normal upimg" up="pic" style="border-radius: 1.25rem;position: absolute;top: 6px;right: 6px;height: 40px; width: 100px;"><i class="layui-icon">&#xe64a;</i>上传头像</button>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label for="name">姓名</label>
                                            <div class="form-group">
                                                <input type="text" name="username" value="<?php echo user('username'); ?>" style="text-align: left;" autocomplete="off" placeholder="请输入" class="form-control">
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label for="name">性别</label>
                                            <div class="form-group">
                                                <input type="radio" name="sex" value="1" title="男" <?php if(user( 'sex')==1): ?>checked="" <?php endif; ?>>
                                                <input type="radio" name="sex" value="0" title="女" <?php if(user( 'sex')==0): ?>checked="" <?php endif; ?>>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label for="name">家乡</label>
                                            <div class="form-group">
                                                <input type="text" name="userhome" value="<?php echo user('userhome'); ?>" style="text-align: left;" autocomplete="off" placeholder="请输入" class="layui-input form-control">
                                            </div>
                                        </div>
                                        <div class="layui-form-item layui-form-text">
                                            <label for="name">介绍</label>
                                            <div class="form-group">
                                                <textarea name="description" placeholder="请输入内容" class="layui-textarea form-control"><?php echo user('description'); ?></textarea>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label for="name">真实名字</label>
                                            <div class="form-group">
                                                <input type="text" name="sm_id" value="<?php echo user('sm_id'); ?>" style="text-align: left;" autocomplete="off" placeholder="对应提现账户的实名" class="form-control">
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label for="name">提现账户</label>
                                            <div class="form-group">
                                                <input type="text" name="sm_at" value="<?php echo user('sm_at'); ?>" style="text-align: left;" autocomplete="off" placeholder="输入提现账户例如支付宝" class="form-control">
                                            </div>
                                        </div>
                                        
                                        <div class="layui-form-item">
                                            <label for="name">新密码</label>
                                            <div class="form-group">
                                                <input type="text" name="passwords" value="" style="text-align: left;" autocomplete="off" placeholder="留空不改" class="form-control">
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label for="name">确定密码</label>
                                            <div class="form-group">
                                                <input type="text" name="password" value="" style="text-align: left;" autocomplete="off" placeholder="留空不改" class="form-control">
                                            </div>
                                        </div>
                                        <div align="center"> <a href="javascript:;" lay-submit lay-filter="cms" class="layui-btn">修改资料</a>
                                        </div>
                                    </ul>
                                </div>
                            </form>
                            <?php endif; if(get('id','1')=='account'): ?>
                            <!--账户绑定-->
                             <form class="layui-form form" url="<?php echo url('index/api/user_set_name'); ?>" t_url="javascript:location.reload();">
                                <div class="pricing-body">
                                    <ul class="list contact-form col-lg-12">
                                        <div class="layui-form-item">
                                            <label for="name">手机号码/邮箱</label>
                                            <div class="form-group">
                                                <input type="text" id="name" name="name" required lay-verify="required" value="" style="text-align: left;" autocomplete="off" placeholder="新的手机号码或者邮箱" class="form-control">
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label for="name">验证码</label>
                                            <div class="form-group">
                                                <input type="text" name="yanzhengma" class="form-control" lay-verify="required" value="" id="pic" maxlength="6" placeholder="验证码 不换留空"  autocomplete="off" class="layui-input">
                                                <div id="tup" style="display:none;"><img id="tupimg" src="" width="190"> </div>
                                              
                                              <button type="button" class="layui-btn layui-btn-normal sendRegCode" style="border-radius: 1.25rem;position: absolute;top: 6px;right: 6px;height: 40px; width: 100px;" t_url="<?php echo url('index/api/yanzhengma_genghuan'); ?>" id="phoneormail">发送验证码</button>
                                              </div>
                                          </div>
                                        <div align="center"><a href="javascript:;" lay-submit lay-filter="cms" class="layui-btn">提交修改</a></div>
                                    </ul>
                                </div>
                            </form>
                            <?php endif; ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </main>
    <div class="h66"></div>
    <?php echo hook('userset'); ?>
    	</body>
	<script type="text/javascript" src="/public/js/form_ajax.js?v=<?php echo set('banben'); ?>"></script>
    <script src="/app/index/view/public/js/plugins.min.js"></script>
    <script src="/app/index/view/public/js/common.js"></script>
    <script>
    $(document).ready(function(){
        $('#gengduo').on('click', function(){
            $(".fanhui").hide(500);
            $(".genduo").show(500);
        });
        $('#fanhui').on('click', function(){
            $(".fanhui").show(500);
            $(".genduo").hide(500);
        });
    });    
    </script>
    <?php echo hook('userfooter'); ?>
</html>
 
 
 

 
